package com.lx.entity;

/**
 * @author c先生
 * @date 2022年05月05日 下午 3:58:54
 * @describe
 */

public class Admin {
    /**
     * 管理员Id
     */
    private Integer adminId;
    /**
     * 管理员名字
     */
    private String adminName;
    /**
     * 管理员密码
     */
    private String adminPwd;

    /**
     * DEFAULT 666666''管理员口令
     */
    private String adminKey;

    /**
     * 管理员状态 0 正常使用 1暂停使用  2关闭
     */
    private Integer adminStatus;

    public Admin() {
    }

    public Admin(Integer adminId, String adminName, String adminPwd, String adminKey, Integer adminStatus) {
        this.adminId = adminId;
        this.adminName = adminName;
        this.adminPwd = adminPwd;
        this.adminKey = adminKey;
        this.adminStatus = adminStatus;
    }

    public Integer getAdminId() {
        return adminId;
    }

    public void setAdminId(Integer adminId) {
        this.adminId = adminId;
    }

    public String getAdminName() {
        return adminName;
    }

    public void setAdminName(String adminName) {
        this.adminName = adminName;
    }

    public String getAdminPwd() {
        return adminPwd;
    }

    public void setAdminPwd(String adminPwd) {
        this.adminPwd = adminPwd;
    }

    public String getAdminKey() {
        return adminKey;
    }

    public void setAdminKey(String adminKey) {
        this.adminKey = adminKey;
    }

    public Integer getAdminStatus() {
        return adminStatus;
    }

    public void setAdminStatus(Integer adminStatus) {
        this.adminStatus = adminStatus;
    }

    /**
     * 0 正常使用 1暂停使用  2关闭
     */
    private String printStatus() {
        switch (adminStatus) {
            case 0:
                return "账号正常";
            case 1:
                return "暂停使用";
            case 2:
                return "账号关闭";
            default:
                return null;
        }
    }

    @Override
    public String toString() {
        return "管理员工号:" + adminId +
                "  管理员名字:" + adminName +
                "  管理员密码:" + adminPwd +
                "  管理员口令:" + adminKey +
                "  管理员账号状态:" + this.printStatus();
    }
}
